
<form method="POST">
<input type="text" size="200" name="link" />
<input type="submit" value="save" />
</form>


<?php

if(!empty($_POST))
{
	$file = fopen("link.txt","w");
	fwrite($file, $_POST["link"]);
	fclose($file);
}

?>